package com.apexsoft.monitor.front.console.app.dao;

import com.apexsoft.monitor.front.console.app.om.AppNode;
import com.baomidou.mybatisplus.mapper.AutoMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface AppNodeDao extends AutoMapper<AppNode> {

    public AppNode selectByCode(@Param("nodeCode") String nodeCode);

    public List<AppNode> selectByHostCode(@Param("hostCode") String hostCode);

    public List<HashMap> getAllNodeForLog(@Param("appCode") String appCode);

    public List<HashMap> getAllNodeForComboboxTree();

    public int insertAppNode(AppNode appNode);
}
